<?php /*

*/
//error_reporting(0);?>
<?php
 
 $family=array("may"=>array("dad"=>array("nikitha"=>55,"suresh"=>60,"ramesh"=>40),
 "mom"=>array("nikitha"=>40,"suresh"=>20,"ramesh"=>35)),
 "june"=>array("dad"=>array("nikitha"=>35,"suresh"=>45,"ramesh"=>55),
 " mom"=>array("nikitha"=>50,"suresh"=>35,"ramesh"=>25)));

 
$b=array("nikitha"=>575000,"suresh"=>480000,"ramesh"=>360000);
 
 foreach($family as $key=>$value)
 {
 $month = $value;
 
 foreach($month as $key1=>$value1)
 {
 $parent = $value1;
 //print_r($parent);
 foreach($parent as $key2=>$value2)
 {
 $child = $value2;
 echo $key ."".$key1 . $key2 . ((($b[$key2]/12)*$value2)/100).'<br>'; 
 //echo $b[$key2];
 }
 }
 }
 
 ?>